const toUpper = (input)=>{
	return input.toUpperCase()
}
const toLower = (input)=>{
	return input.toLowerCase()
}
// parseInt() 转换为Int
// parseFloat() 转换为float
//str.replace(/需要替换的字符串/g，"新字符串")

// 在页面传参数 然后对url进行处理
const replace_get_data = (url)=>{
	url = url.replace("?", ",")
	url = url.replace(/\&/g, "|")
	url = url.replace(/\=/g, "$")
	return url
}
const parse_get_data = (url)=>{
	url = url.replace(",","?")
	url = url.replace(/\|/g,"&")
	url = url.replace(/\$/g,"=")
	return url
}
const replaceStr = (str) => {
	return str.replace(/(.{4})/g, '$1 ');
}
 
export default{
	toUpper,
	toLower,
	replace_get_data,
	parse_get_data,
	replaceStr
}